package co.legu.carpool.api.route.entity;

import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;

/**
 * <p>
 * 路线
 * </p>
 */
@Data
@Accessors(chain = true)
public class Route {
    private String id;

    @NotBlank(message = "起点不能为空。")
    private String startPoint;

    @NotBlank(message = "终点不能为空。")
    private String endPoint;

    @TableLogic
    private Boolean deleted;
}
